﻿using OnlineLearningSystem.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineLearningSystem.IRepository
{
    public interface IBatchRepository
    {
        /// <summary>
        /// 创建实体
        /// </summary>
        /// <param name="entity"></param>
        void Create(Batch entity);

        /// <summary>
        /// 条件查询单个实体
        /// </summary>
        /// <param name="wherelambda"></param>
        /// <returns></returns>
        Batch Get(Func<Batch, bool> wherelambda);

        /// <summary>
        /// 查询所有实体
        /// </summary>
        /// <returns></returns>
        List<Batch> GetAll();

        /// <summary>
        /// 更新实体
        /// </summary>
        /// <param name="course"></param>
        void Update(Batch course);

        /// <summary>
        /// 删除实体
        /// </summary>
        /// <param name="course"></param>
        void Delete(Batch course);
    }
}
